<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="text-center pages" style="width: auto;">
	<p>
		<c:choose>
			<c:when test="${page.currentIndex-1<1}">
				<a href="javascript:void(0)" type="button" class="btn btn-default disabled">&nbsp;&nbsp;&laquo;&nbsp;&nbsp;</a>
			</c:when>
			<c:otherwise>
				<a href="${page.href}${page.currentIndex-1}" title="上一页" type="button" class="btn btn-default">&nbsp;&nbsp;&laquo;&nbsp;&nbsp;</a>
			</c:otherwise>
		</c:choose>
		<a href="${page.href}1" type="button" class="btn btn-default" title="1">首页</a>
		<c:if test="${page.currentIndex-5>=1}">
				......
				<a href="${page.href}${page.currentIndex-5}" type="button" class="btn btn-default" title="${page.currentIndex-5}">${page.currentIndex-5}</a>
		</c:if>
		<c:if test="${page.currentIndex-4>=1}">
			<a href="${page.href}${page.currentIndex-4}" type="button" class="btn btn-default" title="${page.currentIndex-4}">${page.currentIndex-4}</a>
		</c:if>
		<c:if test="${page.currentIndex-3>=1}">
			<a href="${page.href}${page.currentIndex-3}" type="button" class="btn btn-default" title="${page.currentIndex-3}">${page.currentIndex-3}</a>
		</c:if>
		<c:if test="${page.currentIndex-2>=1}">
			<a href="${page.href}${page.currentIndex-2}" type="button" class="btn btn-default" title="${page.currentIndex-2}">${page.currentIndex-2}</a>
		</c:if>
		<c:if test="${page.currentIndex-1>=1}">
			<a href="${page.href}${page.currentIndex-1}" type="button" class="btn btn-default" title="${page.currentIndex-1}">${page.currentIndex-1}</a>
		</c:if>
		<a href="javascript:void(0)" type="button" class="btn btn-success disabled" title="${page.currentIndex }">${page.currentIndex}</a>
		<c:if test="${page.currentIndex+1<=page.totalPages}">
			<a href="${page.href}${page.currentIndex+1}" type="button" class="btn btn-default" title="${page.currentIndex+1}">${page.currentIndex+1}</a>
		</c:if>
		<c:if test="${page.currentIndex+2<=page.totalPages}">
			<a href="${page.href}${page.currentIndex+2}" type="button" class="btn btn-default" title="${page.currentIndex+2}">${page.currentIndex+2}</a>
		</c:if>
		<c:if test="${page.currentIndex+3<=page.totalPages}">
			<a href="${page.href}${page.currentIndex+3}" type="button" class="btn btn-default" title="${page.currentIndex+3}">${page.currentIndex+3}</a>
		</c:if>
		<c:if test="${page.currentIndex+4<=page.totalPages}">
			<a href="${page.href}${page.currentIndex+4}" type="button" class="btn btn-default" title="${page.currentIndex+4}">${page.currentIndex+4}</a>
		</c:if>
		<c:if test="${page.currentIndex+5<=page.totalPages}">
			<a href="${page.href}${page.currentIndex+5}" type="button" class="btn btn-default" title="${page.currentIndex+5}">${page.currentIndex+5}</a>
			......
			</c:if>
		<a href="${page.href}${page.totalPages}" type="button" class="btn btn-default" title="${page.totalPages }">末页</a>
		<c:choose>
			<c:when test="${page.currentIndex+1>page.totalPages}">
				<a href="javascript:void(0)" type="button" class="btn btn-default disabled">&nbsp;&nbsp;&raquo;&nbsp;&nbsp;</a>
			</c:when>
			<c:otherwise>
				<a href="${page.href}${page.currentIndex+1}" title="下一页" type="button" class="btn btn-default">&nbsp;&nbsp;&raquo;&nbsp;&nbsp;</a>
			</c:otherwise>
		</c:choose>
	</p>
</div>
